
function test()
{
    static $count = 0;
    echo $count . "\r\n";
    $count++;


    if ($count < 10) {
        test();
    }
    echo '...';
    $count--;
    echo 'count:' . $count . "\r\n";
}

test();
